package org.tinyweb.render;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class JspRender extends Render {
    private static final Logger LOGGER = LoggerFactory.getLogger(JspRender.class);
    public JspRender(String view){
        this.view = view;
    }
    
    @Override
    public void render() {
        try {
            request.getRequestDispatcher(view).forward(request, response);
        } catch (Exception e) {
            LOGGER.error(e.getMessage(),e);
        } 
        
    }
    
}
